Re: Can't figure out how to use now() in default for tsrange column (PG 9.2) - Mailing list pgsql-general

From Chris Bartlett
Subject Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)
Date
Msg-id p06240806cc2a31e90c8c@[192.168.200.4]
Whole thread Raw
In response to Re: Can't figure out how to use now() in default for tsrange column (PG 9.2)  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List pgsql-general
At 8:35 PM +0100 16/7/12, Daniele Varrazzo wrote:
>Even without this quirk, the problem of mapping timestamps to other
>languages data types could be an even stronger design factor. I've
>personally settled for 9999-12-31 which is python's datetime.max, maps
>ok to doubles and won't create problems for almost 8000 years.
>
>
>-- Daniele


Stephane Faroult ('The Art of SQL') says that dates so far in the
future can throw off query planners. He explains it nicely here:
http://www.youtube.com/watch?v=gu0WJJXgEFM

Interesting discussion, thanks.

Chris


pgsql-general by date:

Previous
From: Brar Piening
Date:
Subject: Re: Create stored procedure from C#.net
Next
From: Chris Angelico
Date:
Subject: Re: Replication/cloning: rsync vs modification dates?